package com.sali.asyncollection.service.impl.strategy.method1;


import com.sali.asyncollection.service.impl.strategy.method1.thread.ScoreGetThread;
import com.sali.asyncollection.service.impl.strategy.method1.thread.SendMsgThread;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: sali
 * @date: 2024/7/21 下午3:07.
 * @version: 1.0
 */
@Component
public class AsynMethod01 {

    public void execute(Long userId) {
        new SendMsgThread(userId).start();
        new ScoreGetThread(userId).start();
    }

}
